package com.kele.api.goods;

import com.kele.common.model.response.PageResult;
import com.kele.common.model.response.Result;
import com.kele.model.goods.Brand;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

import java.util.List;
import java.util.Map;

@Api
public interface BrandControllerApi {

    @ApiOperation("获取所有品牌")
    public List<Brand> findAll();

    @ApiOperation("分页查询品牌")
    @ApiImplicitParams({
            @ApiImplicitParam(name="pageNo",value="页码",required=true),
            @ApiImplicitParam(name="pageSize",value="每页大小",required=true),
            @ApiImplicitParam(name="serachMap",value="搜索条件",required=true)
    })
    public PageResult<Brand> findPage(Integer pageNo,
                                      Integer pageSize,
                                      Map serachMap);
    @ApiOperation("保存品牌")
    public Result save(Brand brand);

    @ApiOperation("根据ID查找品牌")
    public Brand findById(Long id);

    @ApiOperation("根据ID删除品牌")
    public Result deleteById(Long id);
    @ApiOperation("根据ID批量删除品牌")
    public Result deleteByIds(List<Long> idList);
}
